xmlhttp_truck_suggest = null;
function suggestTruck()
{
xmlhttp_truck_suggest=GetXmlHttpObject();
if (xmlhttp_truck_suggest==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }

var size = document.getElementById("txt_equip_size").value;
var type = document.getElementById("txt_equip_type").value;
var trucker = "";
  
var url="ajax_suggest.php";
url=url+"?size="+size;
url=url+"&type="+type;
url=url+"&trucker="+trucker;
xmlhttp_truck_suggest.onreadystatechange=function (){
if (xmlhttp_truck_suggest.readyState==4)
  {
	var my_array = eval(xmlhttp_truck_suggest.responseText);
	document.getElementById('hf_truck_id').value = my_array[0];
	document.getElementById('txt_truck').value = my_array[1];
	document.getElementById('txt_esizetype').value = my_array[2]+" - "+my_array[3];
	document.getElementById('txt_contact_person').value = my_array[4];
	document.getElementById('txt_contact_num').value = my_array[6];
  }
};
xmlhttp_truck_suggest.open("GET",url,true);
xmlhttp_truck_suggest.send(null);
}